/**
 * Created by Administrator on 2016/8/1.
 */

var uuid = require('node-uuid');
var async = require('async');
var mineDao = require('../dao/mineDao');



//个人头像信息
exports.mineproinfo = function (userid,callback) {
    mineDao.mineproinfo(userid,function (err, data) {
        callback(err, data);
    })
};

//个人公司信息
exports.mineprofile = function (userid,callback) {
    mineDao.mineprofile(userid,function (err, data) {
        callback(err, data);
    })
};

//我的订单
exports.mineorder = function (userid,callback) {
    mineDao.mineorder(userid,function (err, data) {
        callback(err, data);
    })
};

//我的意见
exports.mineopinion = function (params,callback) {
    mineDao.mineopinion(params,function (err, data) {
        callback(err, data);
    })
};


//管理员待处理订单
exports.adminpending = function (userid,callback) {
    mineDao.adminpending(userid,function (err, data) {
        callback(err, data);
    })
};

//待处理订单
exports.pendingorder = function (userid,id,callback) {
    mineDao.pendingorder(userid,id,function (err, data) {
        callback(err, data);
    })
};

//删除订单
exports.deleteorder = function (id,userid,callback) {
    mineDao.deleteorder(id,userid,function (err, data) {
        callback(err, data);
    })
};

//我的消费
exports.mineexpend = function (userid,callback) {
    mineDao.mineexpend(userid,function (err, data) {
        callback(err, data);
    })
};